/*
 * Copyright (C) GSX Techedu Inc. All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 */

package com.nime.novel.crawl.utils;

import lombok.extern.slf4j.Slf4j;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * @author liujialiang
 * @description
 * @team wuhan operational dev.
 * @date 2020/8/28 8:15 下午
 **/
@Slf4j
public class UrlUtil {

    public static String getDomain(String url) throws MalformedURLException {
        return new URL(url).getHost();
    }

}
